package com.itheima.bufferedstream;

import java.io.*;

public class BufferedStreamDemo2 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("day29-code\\a.txt"));
        BufferedWriter rw = new BufferedWriter(new FileWriter("day29-code\\copy.txt"));
        String s;
        while ((s=br.readLine())!=null){
            rw.write(s);
            rw.newLine();
        }
        rw.close();
        br.close();

    }
}
